#include "client.h"

int main(int argc, char* argv[]) {
    if (argc != 4) {
        std::cerr << "Usage: " << argv[0] << " <server_ip> <port> <num_connections>" << std::endl;
        return 1;
    }

    // 服务器IP、端口、连接数、每个连接最大交互3次
    EchoClient client(argv[1], atoi(argv[2]), atoi(argv[3]), 3);
    if (client.init()) {
        client.start();
    }
    return 0;
}
